﻿using System;
using System.Collections.Generic;
using YaAppoint.Appointments.Pools;
using YaAppoint.Devices;
using YaAppoint.ExamAppies;

namespace YaAppoint.Appointments.AutoAppoint
{
    /// <summary>
    /// 预约计划
    /// </summary>
    public class AppointPlan
    {
        /// <summary>
        /// 是否有时间要求
        /// </summary>
        public bool IsTimeRequired { get; set; } = false;

        /// <summary>
        /// 开始时间(有时间要求时)
        /// </summary>
        public TimeSpan? StartTime { get; set; } = null;

        /// <summary>
        /// 结束时间(有时间要求时)
        /// </summary>
        public TimeSpan? EndTime { get; set; } = null;  

        /// <summary>
        /// 支持该预约的设备集合
        /// </summary>
        public List<DeviceDto> Devices { get; set; } 

        /// <summary>
        /// 包含的申请项目
        /// </summary>
        public List<ExamApplicationDto> ApplyItems { get; set; }

        /// <summary>
        /// 推荐号池
        /// </summary>
        public List<PoolDto> SuggestedPools { get; set; }
    }
}
